/** 后台路由 */
export const adminRouter: RouteDataStatic[] = [
  // {
  //   path: 'index',
  //   name: '首页',
  //   layout: false,
  //   element: () => import('@/pages/index')
  // },
  {
    path: 'product',
    name: '生产管理',
    icon: 'ri:home-gear-fill',
    children: [
      {
        path: 'monitoring',
        name: '运行监控',
        icon: 'ri:video-on-fill',
        children: [
          {
            path: 'aerialview',
            name: '鸟瞰图',
            element: () => import('@/components/iframe')
          },
          {
            path: 'integration',
            name: '一体化',
            element: () => import('@/components/iframe')
          },
          {
            path: 'pretreatment',
            name: '预处理',
            element: () => import('@/components/iframe/tabs')
          },
          {
            path: 'biochemicalsection',
            name: '生化',
            element: () => import('@/components/iframe/tabs')
          },
          {
            path: 'mbr',
            name: 'MBR',
            element: () => import('@/components/iframe/tabs')
          },
          {
            path: 'fendun',
            name: '芬顿',
            element: () => import('@/components/iframe/tabs')
          },
          {
            path: 'baf',
            name: 'BAF',
            element: () => import('@/components/iframe/tabs')
          },
          {
            path: 'dehydration',
            name: '脱水系统',
            element: () => import('@/components/iframe/tabs')
          },
          {
            path: 'deodorization',
            name: '除臭系统',
            element: () => import('@/components/iframe/tabs')
          },
          {
            path: 'fan',
            name: '风机系统',
            element: () => import('@/components/iframe')
          },
          {
            path: 'tankfarm',
            name: '罐区系统',
            element: () => import('@/components/iframe')
          },
          {
            path: 'addmedicine',
            name: '加药工段',
            element: () => import('@/components/iframe')
          },
          {
            path: 'electricity',
            name: '电力系统',
            element: () => import('@/components/iframe')
          }
          // {
          //   path: 'meetingdata',
          //   name: '早调会会前资料',
          //   element: () => import('@/components/iframe')
          // }
        ]
      },
      // {
      //   path: 'pid',
      //   name: 'PID_工艺',
      //   icon: 'ri:server-fill',
      //   children: [
      //     {
      //       path: 'pretreatment',
      //       name: 'PID_预处理工段',
      //       element: () => import('@/components/iframe')
      //     },
      //     {
      //       path: 'biochemicalsection',
      //       name: 'PID_生化工段',
      //       element: () => import('@/components/iframe')
      //     },
      //     {
      //       path: 'mbr',
      //       name: 'PID_MBR工段',
      //       element: () => import('@/components/iframe')
      //     },
      //     {
      //       path: 'fendun',
      //       name: 'PID_芬顿工段',
      //       element: () => import('@/components/iframe')
      //     },
      //     {
      //       path: 'baf',
      //       name: 'PID_BAF工段',
      //       element: () => import('@/components/iframe')
      //     },
      //     {
      //       path: 'dehydration',
      //       name: 'PID_脱水系统',
      //       element: () => import('@/components/iframe')
      //     },
      //     {
      //       path: 'deodorization',
      //       name: 'PID_除臭系统',
      //       element: () => import('@/components/iframe')
      //     }
      //   ]
      // },
      {
        path: 'report',
        name: '报表管理',
        icon: 'ri:layout-horizontal-line',
        element: () => import('@/components/iframe')
      },
      {
        path: 'costanalysis',
        name: '成本分析',
        icon: 'ri:bar-chart-box-ai-line',
        children: [
          {
            path: 'sewagealysis',
            name: '污水数据分析',
            element: () => import('@/pages/product/costanalysis/sewagealysis')
          },
          {
            path: 'wateranalysis',
            name: '原水数据分析',
            element: () => import('@/pages/product/costanalysis/wateranalysis')
          },
          {
            path: 'revenue',
            name: '水及年营收目标',
            element: () => import('@/pages/product/costanalysis/revenue')
          },
          {
            path: 'week',
            name: '周分析营收完成情况',
            element: () => import('@/pages/product/costanalysis/week')
          },
          {
            path: 'medicament',
            name: '药剂现单价',
            element: () => import('@/pages/product/costanalysis/medicament')
          },
          {
            path: 'contrast',
            name: '年数据表',
            element: () => import('@/pages/product/costanalysis/contrast')
          },
          {
            path: 'cost',
            name: '年成本目标',
            element: () => import('@/pages/product/costanalysis/cost')
          },
          {
            path: 'weekcost',
            name: '周成本分析情况',
            element: () => import('@/pages/product/costanalysis/weekcost')
          }
        ]
      },
      {
        path: 'laboratorysamples',
        name: '化验样品记录',
        icon: 'ri:circle-fill',
        element: () => import('@/components/iframe')
      },
      {
        path: 'laboratorysamplesmanagement',
        name: '化验报告管理',
        icon: 'ri:box-3-fill',
        element: () => import('@/pages/product/laboratorysamplesmanagement')
      },
      {
        path: 'dataoverview',
        name: '数据总览',
        icon: 'ri:progress-6-fill',
        element: () => import('@/components/iframe')
      },
      {
        path: 'alarm',
        name: '报警管理',
        icon: 'ri:volume-vibrate-fill',
        element: () => import('@/components/iframe')
      },
      {
        path: 'shiftturnover',
        name: '交接班管理',
        icon: 'ri:contacts-fill',
        children: [
          {
            path: 'team',
            name: '班组管理',
            element: () => import('@/pages/product/shiftturnover/team')
          },
          {
            path: 'month',
            name: '月度排班管理',
            element: () => import('@/pages/product/shiftturnover/month')
          },
          {
            path: 'manage',
            name: '运行日志',
            element: () => import('@/pages/product/shiftturnover/manage')
          },
          {
            path: 'indicator',
            name: '当班指标填报',
            element: () => import('@/pages/product/shiftturnover/indicator')
          }
        ]
      },
      // {
      //   path: 'log',
      //   name: '运行日志',
      //   icon: 'ri:file-list-fill',
      //   element: () => import('@/pages/product/log')
      // },
      {
        path: 'regular',
        name: '定期工作',
        icon: 'ri:kanban-view-2',
        children: [
          {
            path: 'work',
            name: '定期工作',
            element: () => import('@/pages/product/regular/work')
          },
          {
            path: 'handle',
            name: '定期处理',
            element: () => import('@/pages/product/regular/handle')
          }
          // {
          //   path: 'statistics',
          //   name: '定期统计',
          //   element: () => import('@/pages/product/regular/statistics')
          // }
        ]
      },
      {
        path: 'meeting',
        name: '会议管理',
        icon: 'ri:chat-2-fill',
        children: [
          {
            path: 'meeting',
            name: '会议管理',
            element: () => import('@/pages/product/meeting/meeting')
          },
          {
            path: 'work',
            name: '工作任务处理',
            element: () => import('@/pages/product/meeting/work')
          }
        ]
      },
      {
        path: 'standardization',
        name: '标准化管理',
        icon: 'ri:settings-4-fill',
        element: () => import('@/pages/product/standardization')
      },
      {
        path: 'dataanalysis',
        name: '数据分析',
        icon: 'ri:bar-chart-box-line',
        element: () => import('@/components/iframe')
      },
      {
        path: 'inspection',
        name: '巡检管理',
        icon: 'ri:custom-size',
        children: [
          {
            path: 'path',
            name: '巡检路线',
            element: () => import('@/pages/product/inspection/path')
          },
          {
            path: 'task',
            name: '巡检任务',
            element: () => import('@/pages/product/inspection/task')
          },
          {
            path: 'record',
            name: '巡检记录',
            element: () => import('@/pages/product/inspection/record')
          }
          // {
          //   path: 'exception',
          //   name: '异常报送',
          //   element: () => import('@/pages/product/inspection/exception')
          // }
        ]
      }
    ]
  },
  {
    path: 'equipment',
    name: '设备管理',
    icon: 'ri:device-recover-fill',
    children: [
      {
        path: 'defect',
        name: '缺陷管理',
        icon: 'ri:folder-shield-fill',
        element: () => import('@/pages/equipment/defect')
      },
      {
        path: 'maintenance',
        name: '设备保养',
        icon: 'ri:device-fill',
        children: [
          {
            path: 'plan',
            name: '设备保养计划',
            element: () => import('@/pages/equipment/maintenance/plan')
          },
          {
            path: 'records',
            name: '设备保养记录',
            element: () => import('@/pages/equipment/maintenance/records')
          }
        ]
      },
      {
        path: 'inspection',
        name: '设备点检',
        icon: 'ri:folder-settings-fill',
        children: [
          {
            path: 'standard',
            name: '点检标准',
            element: () => import('@/pages/equipment/inspection/standard')
          },
          {
            path: 'records',
            name: '点检记录',
            element: () => import('@/pages/equipment/inspection/records')
          }
        ]
      },
      {
        path: 'variation',
        name: '设备变动',
        icon: 'ri:spam-3-fill',
        children: [
          {
            path: 'storage',
            name: '入库转固',
            element: () => import('@/pages/equipment/variation/storage')
          },
          {
            path: 'allocation',
            name: '调拨',
            element: () => import('@/pages/equipment/variation/allocation')
          },
          {
            path: 'scrap',
            name: '处置报废',
            element: () => import('@/pages/equipment/variation/scrap')
          }
        ]
      },
      {
        path: 'recondition',
        name: '计划性检修',
        icon: 'ri:settings-5-fill',
        children: [
          // {
          //   path: 'daily',
          //   name: '每日检修',
          //   element: () => import('@/pages/equipment/recondition/daily')
          // },
          {
            path: 'regularly',
            name: '定期检修',
            element: () => import('@/pages/equipment/recondition/regularly')
          },
          {
            path: 'record',
            name: '定期检修记录',
            element: () => import('@/pages/equipment/recondition/record')
          }
        ]
      },
      {
        path: 'ledger',
        name: '设备台账',
        icon: 'ri:menu-fill',
        element: () => import('@/pages/equipment/ledger')
      },
      {
        path: 'overviewequipment',
        name: '设备总览',
        icon: 'ri:barcode-box-fill',
        element: () => import('@/components/iframe')
      },
      {
        path: 'equipmentanalysis',
        name: '设备分析',
        icon: 'ri:cast-fill',
        element: () => import('@/components/iframe')
      }
    ]
  },
  {
    path: 'safety',
    name: '安全环保管理',
    icon: 'ri:shield-check-fill',
    children: [
      {
        path: 'safety',
        name: '安全管理',
        icon: 'ri:dashboard-fill',
        children: [
          {
            path: 'work',
            name: '工作票',
            element: () => import('@/pages/safety/safety/work')
          },
          {
            path: 'hiddendanger',
            name: '安全隐患管理',
            children: [
              {
                path: 'analysis',
                name: '隐患分析',
                element: () => import('@/pages/safety/safety/hiddendanger/analysis')
              },
              {
                path: 'ledger',
                name: '隐患台账',
                element: () => import('@/pages/safety/safety/hiddendanger/ledger')
              }
              // {
              //   path: 'check',
              //   name: '排查计划',
              //   element: () => import('@/pages/safety/safety/hiddendanger/check')
              // }
            ]
          },
          {
            path: 'plan',
            name: '安全计划',
            element: () => import('@/pages/safety/safety/plan')
          },
          {
            path: 'hazardous',
            name: '危化品管理',
            children: [
              {
                path: 'report',
                name: '安全报表',
                element: () => import('@/pages/safety/safety/hazardous/report')
              }
            ]
          },
          {
            path: 'emergency',
            name: '应急管理',
            children: [
              {
                path: 'plan',
                name: '预案',
                element: () => import('@/pages/safety/safety/emergency/plan')
              },
              {
                path: 'substance',
                name: '物资',
                element: () => import('@/pages/safety/safety/emergency/substance')
              },
              {
                path: 'records',
                name: '演练记录',
                element: () => import('@/pages/safety/safety/emergency/records')
              }
            ]
          },
          {
            path: 'certificate',
            name: '证件管理',
            children: [
              {
                path: 'personnel',
                name: '人员持证管理',
                element: () => import('@/pages/safety/safety/certificate/personnel')
              },
              {
                path: 'equipment',
                name: '特种设备管理',
                element: () => import('@/pages/safety/safety/certificate/equipment')
              },
              {
                path: 'transportation',
                name: '委外单位管理',
                element: () => import('@/pages/safety/safety/hazardous/transportation')
              }
            ]
          },
          {
            path: 'training',
            name: '安全培训',
            element: () => import('@/pages/safety/safety/training')
          },
          {
            path: 'equipment',
            name: '安全器材管理',
            element: () => import('@/pages/safety/safety/equipment')
          }
        ]
      },
      {
        path: 'environmental',
        name: '环保管理',
        icon: 'ri:dashboard-horizontal-fill',
        children: [
          {
            path: 'project',
            name: '项目手续',
            element: () => import('@/pages/safety/environmental/project')
          },
          {
            path: 'monitoring',
            name: '监测管理',
            element: () => import('@/pages/safety/environmental/monitoring')
          },
          {
            path: 'trash',
            name: '危险废物管理',
            element: () => import('@/pages/safety/environmental/trash')
          }
        ]
      },
      {
        path: 'monitoring',
        name: '视频监控',
        icon: 'ri:video-on-fill',
        element: () => import('@/components/iframe')
      }
    ]
  },
  {
    path: 'repertory',
    name: '库存管理',
    icon: 'ri:home-fill',
    children: [
      {
        path: 'equipment',
        name: '设备库存管理',
        icon: 'ri:home-fill',
        element: () => import('@/pages/repertory/equipment')
      },
      {
        path: 'product',
        name: '生产库存管理',
        icon: 'ri:home-gear-fill',
        children: [
          {
            path: 'storage',
            name: '入库记录',
            element: () => import('@/components/iframe')
          },
          {
            path: 'warehousing',
            name: '原料入库',
            element: () => import('@/components/iframe')
          },
          {
            path: 'rawmaterial',
            name: '原料出库',
            element: () => import('@/components/iframe')
          },
          {
            path: 'stockremoval',
            name: '出库记录',
            element: () => import('@/components/iframe')
          },
          {
            path: 'statistics',
            name: '库存统计',
            element: () => import('@/components/iframe')
          },
          {
            path: 'inventorycheck',
            name: '库存盘点',
            element: () => import('@/components/iframe')
          }
        ]
      }
    ]
  },
  {
    path: 'performance',
    name: '绩效管理',
    icon: 'ri:coin-fill',
    children: [
      {
        path: 'manage',
        name: '绩效管理',
        icon: 'ri:coin-fill',
        element: () => import('@/pages/performance/manage')
      }
    ]
  },
  // {
  //   path: 'management',
  //   name: '经营管理',
  //   icon: 'ri:bank-card-fill',
  //   children: [
  //     {
  //       path: 'demand',
  //       name: '采购需求',
  //       icon: 'ri:wallet-fill',
  //       element: () => import('@/pages/management/demand')
  //     },
  //     {
  //       path: 'plan',
  //       name: '采购计划',
  //       icon: 'ri:wallet-2-fill',
  //       element: () => import('@/pages/management/plan')
  //     },
  //     {
  //       path: 'goods',
  //       name: '到货管理',
  //       icon: 'ri:wallet-3-fill',
  //       element: () => import('@/pages/management/goods')
  //     }
  //   ]
  // },
  {
    path: 'cockpit',
    name: '驾驶舱',
    icon: 'ri:codepen-fill',
    children: [
      {
        path: 'cockpit',
        name: '生产管理驾驶舱',
        icon: 'ri:codepen-fill',
        element: () => import('@/components/iframe')
      },
      {
        path: 'equipment',
        name: '设备管理驾驶舱',
        icon: 'ri:barcode-box-fill',
        element: () => import('@/components/iframe')
      },
      {
        path: 'safety',
        name: '安全环保管理驾驶舱',
        icon: 'ri:function-fill',
        element: () => import('@/components/iframe')
      }
    ]
  },
  {
    path: 'system',
    name: '系统管理',
    icon: 'ri:settings-4-fill',
    children: [
      {
        path: 'user',
        name: '用户管理',
        icon: 'ri:user-3-fill',
        element: () => import('@/pages/system/user')
      },
      {
        path: 'role',
        name: '角色管理',
        icon: 'ri:group-3-fill',
        element: () => import('@/pages/system/role')
      },
      // {
      //   path: "version",
      //   element: () => import("@/pages/system/version")
      // },
      {
        path: 'auth',
        name: '权限管理',
        icon: 'ri:lock-fill',
        children: [
          {
            path: 'menu',
            name: '菜单管理',
            element: () => import('@/pages/system/auth/menu')
          },
          {
            path: 'api',
            name: '接口管理',
            element: () => import('@/pages/system/auth/api')
          }
        ]
      },
      {
        path: 'dict',
        name: '字典管理',
        icon: 'ri:book-fill',
        element: () => import('@/pages/system/dict')
      },
      {
        path: 'notice',
        name: '公告管理',
        icon: 'ri:notification-fill',
        element: () => import('@/pages/system/notice')
      },
      // {
      //   path: "app",
      //   name: '第三方应用',
      //   children: [
      //     {
      //       path: 'app',
      //       name: '应用管理',
      //       element: () => import("@/pages/system/app/app")
      //     },
      //     {
      //       path: 'my',
      //       name: '我的应用',
      //       element: () => import("@/pages/system/app/my")
      //     },
      //   ]
      // },
      {
        path: 'log',
        name: '系统日志',
        icon: 'ri:file-list-fill',
        children: [
          {
            path: 'api',
            name: '接口日志',
            element: () => import('@/pages/system/log/api')
          },
          {
            path: 'login',
            name: '登录日志',
            element: () => import('@/pages/system/log/login')
          }
        ]
      }
    ]
  },
  // 个人设置
  {
    path: 'person',
    element: () => import('@/pages/person/layout'),
    layout: false,
    hideMenu: true,
    children: [
      {
        path: 'info',
        name: '个人信息',
        element: () => import('@/pages/person/info')
      },
      {
        path: 'password',
        name: '账号密码',
        element: () => import('@/pages/person/password')
      }
    ]
  },
  // end 个人设置
  {
    path: 'setting',
    name: '系统配置',
    hideMenu: true,
    element: () => import('@/pages/setting/index')
  },
  {
    path: '*',
    element: () => import('@/pages/404')
  }
];

/** 固定路由 */
export const commonRouter: RouteDataStatic[] = [
  {
    path: 'user',
    noAuth: true,
    element: () => import('@/pages/user/layout'),
    children: [
      {
        path: 'login',
        name: '登录',
        element: () => import('@/pages/user/login')
      }
      // {
      //   path: 'forget',
      //   name: '忘记密码',
      //   element: () => import('@/pages/user/forget')
      // }
    ]
  }
];
